<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作为公共模版分离出去-->

<title>修改密码 - 会员管理 - H-ui.admin v3.1</title>
<meta name="keywords" content="H-ui.admin v3.1,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.1，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>
<article class="page-container">
	<form action="addOrUpdateSystemDictionaryItem" method="post" class="form form-horizontal" id="form-change-password">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>用户名：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="userName">用户名</span>
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>真实姓名：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="realName">真实姓名</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身份证号：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="idNumber">身份证号码</span>
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>性别：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="sex">性别</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>生日：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="bornDate">生日</span>
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身份证地址：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<span id="address">身份证地址</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身份证正面：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<img src="" style="border: #1b1b1b 1px solid;width: 170px;height: 110px;cursor:pointer" id="images1">
			</div>
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身份证反面：</label>
			<div class="formControls col-xs-4 col-sm-3">
				<img src=""   style="border: #1b1b1b 1px solid;width: 170px;height:110px;cursor:pointer" id="images2">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>审核备注：</label>
			<div class="formControls col-xs-8 col-sm-7">
				<textarea style="height: 150px;width: 570px;font-size: 16px" placeholder="审核备注" id="remark"></textarea>
			</div>
		</div>
		<div class="row cl" id="edit">
			<div class="col-xs-8 col-sm-2  col-sm-offset-7">
				<input class="btn btn-primary radius btn-success"  id="auditSuccess" type="button" value="&nbsp;&nbsp;审核通过&nbsp;&nbsp;">
			</div>
			<div class="col-xs-8 col-sm-2  ">
				<input class="btn btn-primary radius btn-danger"  id="auditRefuse" type="button" value="&nbsp;&nbsp;审核拒绝&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>  
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript">
	var id=parent.id;
    $.ajax({
        type        : "POST",
        url         : "getRealAuth.do",
        dataType    : 'json',
        data        : {"id":id} ,
        success     : function(res){
            // 请求成功
			var data=res.data;
            if(0 === res.status){
				$("#userName").text(data.applier.username);
				$("#realName").text(data.realName);
				$("#idNumber").text(data.idNumber);
				$("#sex").text(data.sexDisplay);
				$("#bornDate").text(data.bornDate);
				$("#address").text(data.address);
				$("#images1").attr("src",_util.getWebLocation+data.image1);
				$("#images2").attr("src",_util.getWebLocation+data.image2);
                var state = data.state;
				if(state!=0){
				    $("#edit").hide();
					$("#remark").val(data.remark);
					$("#remark").attr("readonly","readonly");
				}
            }
        }
    });
	$("#auditSuccess").click(function(){
	    ajaxSubmit(1);
	})
    $("#auditRefuse").click(function(){
        ajaxSubmit(2);
    })
	function ajaxSubmit(state){
		if($("#remark").val()==""||$("#remark").val().trim()==""){
           layer.msg("请添加审核备注再提交操作");
            $("#remark").focus();
		}
		var remark = $("#remark").val();
		$.ajax({
				url:"RealAuth.do",
				data:{"id":id,"state":state,"remark":remark},
				dataType:"json",
			    type:"POST",
				success:function(res){
					if(res.status===0){
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.DataTablesReloda();
                        parent.layer.msg("审核操作成功");
                        parent.layer.close(index);
                    }
				}
			})
	}
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>